package cate.common.table.res.godstreet;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "食神之路-阶段奖励")
public class GodStreetRewardRow extends ERow {
    @NoteField(value = "等级阶段")
    public int stage;

    @NoteField(value = "奖励")
    public String rewardStr;

    @NoteField(value = "核心奖励")
    public String mainRewardStr;

    @NoteField(value = "枚举圣器类型", detail = "0:随机获取 1:2:3:4:获取指定数字对应的固定圣器")
    public int hallow;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("阶段");
        this.stage = xrw.getInteger("阶段");
        this.rewardStr = xrw.getString("奖励", "");
        this.mainRewardStr = xrw.getString("核心奖励", "");
        this.hallow = xrw.getInteger("是否激活圣器", -1);
    }
}
